<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>	
<script>
$(document).ready(function() {  
      var personId = request.QueryString("person.id");                             
      oscarObject.getMovieListByPersonId(personId ,"#personMovieList");
      
      descriptionForm.init();
      commentForm.init();
  });
</script> 
 		
<!-- 编辑传记（简介）窗口 -->
<div id="editDescriptionDialog" title="编辑简介" style="display:none">
	<form id="descriptionForm" action="description!addBiography" method="post">
		<input type="hidden" name="biography.person.id" value="<s:property value='person.id'/>"/>
		<input type="hidden" name="biography.account.id" value="<s:property value='#session.account.id'/>"/>
		<textarea id="description" name="biography.content" style="width:550px;height:160px;"><s:property value="person.biography" escape="false" /></textarea>
	</form>
	<p class="validateTips"></p>
</div>

<!-- 发表评论窗口(Person) -->
<div id="addCommentDialog" title="发表评论" style="display:none">
	<form id="commentForm" action="comment!addCommentPerson" method="post">
		<input type="hidden" name="commentPerson.person.statistics.id" value="<s:property value='person.statistics.id'/>"/>
		<input type="hidden" name="commentPerson.person.id" value="<s:property value='person.id'/>"/>
		<input type="hidden" name="commentPerson.account.id" value="<s:property value='#session.account.id'/>"/>
		<input type="hidden" id="sendToWeibo" name="commentPerson.sendToWeibo" value="false"/>
		<input type="hidden" name="commentPerson.person.image.url" value="<s:property value='person.image.src'/>"/>
		<textarea id="comment" name="commentPerson.content" style="width:550px;height:160px;"></textarea>
	</form>
	<p class="validateTips"></p>
</div>

<div class="nominationCategory">
	<div class="categoryTitle clearfix">
		<s:if test="#session.account!=null">
			<a NAME="Abiography" id="editDescription" style="cursor:pointer;">编辑</a>
		</s:if><s:else>
			<a NAME="Abiography" id="loginFromEditDescription" style="cursor:pointer;">编辑</a>
		</s:else>
		<h3><span class="GRAYTITLE">简介</span> BIOGRAPHY</h3>
	</div>
	<ul class="nomineeList clearfix">
		<li id="catNominee_413" class="Nominee clearfix">
			<div class="nomineeListItemContainer">
				<div class="nomineeTitle" style="font-size:13px;line-height:19px">
					<s:property value="person.biography" escape="false" />
				</div>
			</div>
		</li>
	</ul>
</div>

<!-- nominationCategory -->
<div class="nominationCategory">
	<div class="categoryTitle clearfix">
		<a NAME="Aaward" href="#"></a>
		<h3><span class="GRAYTITLE">获奖</span> AWARD</h3>
	</div>
	<ul class="nomineeList clearfix">
		<li id="catNominee_413" class=" Nominee clearfix">
			<div class="nomineeListItemContainer">
				<div class="nomineeTitle detailedInfo" >
				<s:iterator value="person.sortedMpacs" status="stat">
					<s:property value="calendar.nameCn" /> - 
					<s:property value="award.displayName" /> 
					<s:if test="type==1">(<s:property value="typeName" escape="false"/>)</s:if> 
					<s:elseif test="type==2"><img src="img/img_winnerMarker.png" style="height:11px;width:48px;margin-bottom: -1px;"/></s:elseif>
					《<a href="movie!load?movie.id=<s:property value='movie.id'/>"><s:property value="movie.displayName" /></a>》
					<br/>
					
				</s:iterator>
				</div>	
			</div>
		</li>
	</ul>
</div>
<!-- nominationCategory -->			
				
			
<div class="nominationCategory">	
	<div class="categoryTitle clearfix">
		<A NAME="Arelated" href="#"></a>
		<h3><span class="GRAYTITLE">相关电影</span> 奥斯卡电影</h3>
	</div>
	
	<ul class="nomineeList clearfix" id="personMovieList"></ul>
</div>


<!-- template code for the movie tab -->
<span id="storedMovieTab">
             <div id="dropDownMovie" style="display:none;">				  
				    <div id="tabs" class="tabs">
				    <div id="movieTabLoading" class="loadingImg"></div>	
                      <ul>
                        <li><a href="#tab1"><span>基本信息</span></a></li>
                        <li><a href="#tab2"><span>剧情</span></a></li>
                        <li><a href="#tab3"><span>剧照</span></a></li>
                        <li style="display:none;"><a href="#tab4"><span>视频</span></a></li>
                        <div style="float:right; margin-top: 4px;">
                           	<!-- badu -->
                               <div id="bdshare" class="bdshare_b" style="line-height: 12px; margin-top:-2px;">
							  <img src="img/social_banner.png" />
							</div>
							<script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=158997" ></script>
							<script type="text/javascript" id="bdshell_js"></script>
							<script type="text/javascript">								    
								document.getElementById("bdshell_js").src = "http://share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
							</script>
							<!-- Baidu Button END -->
                        </div>
                      </ul>                      
                         <div id="tab1">
                         <div style="float:left;">                      
                           <img src="uploaded/images/thumb.png" class="tabMainImg"/>
                           <div class="clear"></div>                              
                         </div>   
                         <br/>                                                
                             <p>
                               <span class="tabFont1" >上映：</span>
							   <span id="datetime" class="tabFont2" style="display:inline-block;width:250px;"></span>                             
                               <span class="tabFont1">地区：</span>
							   <span id="country" class="tabFont2"></span>                             
                             </p>                      
                             <p>
                               <span class="tabFont1" >分类：</span>
							   <span id="category" class="tabFont2" style="display:inline-block;width:250px;"></span>                            
                               <span class="tabFont1">语言：</span>
							   <span id="language" class="tabFont2"></span>	
                             </p>                       
                             <p>
                                <span class="tabFont1">导演：</span>
							    <span id="director" class="tabFont2"></span>
                             </p>                          
                             <p>
                               <span class="tabFont1">主演：</span>
							   <span id="actor" class="tabFont2"></span>
                             </p>                   
                             <p>
                               <span class="tabFont1"><img src="img/Oscar.png" style="width:20px;height:50px;margin-right:10px;"/></span>                                                          
							   <span id="award"  class="tabFont1" style="display:inline-block"></span>
                             </p>                                          
                      </div>                                                                       
                      <div id="tab2">
                        <div id="plot" class="nomineeTitle detailedInfo">
                        </div>                                           
                      </div>                                                                                               
                      <div id="tab3">
                       	暂无
                        <div id="pictures" style="display:none">
                          <div id="footbar" class="trans" >
                             <img src="img/prev.png" id="swipe_nav_prev" style="cursor:pointer; margin:7px 5px 0px 0px;position:relative;"/>                             
                             <img src="img/next.png" id="swipe_nav_next" style="cursor:pointer; margin:7px 0px 0px 5px;position:relative;"/>
                          </div>
                        </div>            						                   
                      </div>
                      <div id="tab4">
                        <div style="height:350px;">
                        </div>
                      </div>                              
                    </div><!-- <div id="tabs" class="tabs"> -->
                 </div>
</span>                 

<!-- nominationCategory 评论-->
<div class="nominationCategory" >
	<div class="categoryTitle clearfix">
		<s:if test="#session.account!=null">
			<a NAME="Acomment" id="addComment" style="cursor:pointer;">评论 (<s:property value="person.statistics.commented"/>)</a>
		</s:if><s:else>
			<a NAME="Acomment" id="loginFromAddComment" style="cursor:pointer;">评论 (<s:property value="person.statistics.commented"/>)</a>
		</s:else> 
		<h3><span class="GRAYTITLE">评论</span> COMMENT</h3>
	</div>
	<ul class="nomineeList clearfix">
		<li id="catNominee_413" class="Nominee clearfix">
			<div class="nomineeListItemContainer">
				<div class="nomineeTitle detailedInfo">
					<s:if test='comments.size == 0'>
						<div style="display:inline-block; padding:10px; ">
							暂无评论
						</div>
				    </s:if><s:else>
				    
					
					<s:iterator value="comments" status="stat">
						<div style="border-bottom:0px solid red; width:930px">
							<div style="border:0px solid yellow; width:150px; float:right">
								<s:property value="datetime" />
							</div>
							
							<div style="border:0px solid blue; width:850px;float:right">
								<s:property value="content" />
							</div>
							
							<div style="border:0px solid blue; width:80px;">
								<a wb_user_id="<s:property value="account.weiboId"/>" >
									<img src="<s:property value="account.icon" />" style="border:1px solid gray; padding: 3px;"/><br>
									<s:property value="account.name" />
								</a>
							</div>
							
						</div>
						 
						<br>
					</s:iterator>
					
				    <!-- Paging starts -->
					<s:a href="person!load?person.id=%{person.id}&paging.currentPage=1#Acomment"> |< </s:a>
					<s:if test="%{paging.currentPage>1}"><s:a href="person!load?person.id=%{person.id}&paging.currentPage=%{paging.currentPage-1}#Acomment"> << </s:a></s:if>
					<s:else><<</s:else>
					&nbsp;&nbsp;<s:property value="paging.currentPage" />/<s:property value="paging.totalPage" />&nbsp;&nbsp;
					<s:if test="%{paging.currentPage<paging.totalPage}"><s:a href="person!load?person.id=%{person.id}&paging.currentPage=%{paging.currentPage+1}#Acomment">>></s:a></s:if>
					<s:else>>></s:else>
					<s:a href="person!load?person.id=%{person.id}&paging.currentPage=%{paging.totalPage}#Acomment"> >| </s:a>
					<!-- Paging ends -->
					
					</s:else>
				</div>		
			</div>
		</li>
	</ul>
</div><!--nominationCategory-->						
						